package com.google.code.chaotic.server;

import com.google.code.chaotic.client.LoginInfo;
import com.google.code.chaotic.client.LoginService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class LoginServiceImpl //
		extends RemoteServiceServlet implements LoginService {

	public LoginInfo login(String requestUri) {
		LoginInfo loginInfo = new LoginInfo();
//		UserService userService = UserServiceFactory.getUserService();
//		User user = userService.getCurrentUser();
//
//		if (user != null) {
//			loginInfo.setLoggedIn(true);
//			loginInfo.setEmailAddress(user.getEmail());
//			loginInfo.setNickname(user.getNickname());
//			loginInfo.setLogoutUrl(userService.createLogoutURL(requestUri));
//
//		} else {
//			loginInfo.setLoggedIn(false);
//			loginInfo.setLoginUrl(userService.createLoginURL(requestUri));
//		}
		return loginInfo;
	}

}
